//
//  WFServiceSectionHeaderView.m
//  WisdomFarm
//
//  Created by sky on 2018/2/23.
//  Copyright © 2018年 sky. All rights reserved.
//

#import "WFServiceSectionHeaderView.h"

@implementation WFServiceSectionHeaderView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _iconView = [[UIImageView alloc] init];
        _iconView.image = [UIImage imageNamed:@"report_icon"];
        [self addSubview:_iconView];
        _titleLabel = [[UILabel alloc] init];
        _titleLabel.font = SCFont(14);
        _titleLabel.textColor = [UIColor textTitleColor];
        [self addSubview:_titleLabel];
        
        [_iconView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.offset(15);
            make.centerY.offset(0);
        }];
        [_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.iconView.mas_right).offset(5);
            make.centerY.offset(0);
        }];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
